home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-05-18 | 8.3 KB | 312 lines | [TEXT/CWIE] |
- /*==============================================================================
- Project: POV-Ray
-
- Version: 3
-
- File: POVMacHeaders.pch
-
- Description:
- This is a generic Precompiled Header File for POV-Ray
- it will be "Precompiled" and saved before MAKing the project.
- ------------------------------------------------------------------------------
- Author:
- Eduard [esp] Schwan
- ------------------------------------------------------------------------------
- from Persistence of Vision(tm) Ray Tracer
- Copyright 1996 Persistence of Vision Team
- ------------------------------------------------------------------------------
- NOTICE: This source code file is provided so that users may experiment
- with enhancements to POV-Ray and to port the software to platforms other
- than those supported by the POV-Ray Team. There are strict rules under
- which you are permitted to use this file. The rules are in the file
- named POVLEGAL.DOC which should be distributed with this file. If
- POVLEGAL.DOC is not available or for more info please contact the POV-Ray
- Team Coordinator by leaving a message in CompuServe's Graphics Developer's
- Forum. The latest version of POV-Ray may be found there as well.
-
- This program is based on the popular DKB raytracer version 2.12.
- DKBTrace was originally written by David K. Buck.
- DKBTrace Ver 2.0-2.12 were written by David K. Buck & Aaron A. Collins.
- ------------------------------------------------------------------------------
- Change History:
- 951221 [esp] Created
- ==============================================================================*/
-
-
- #if !defined(POVMACHEADERS_PCH)
- #define POVMACHEADERS_PCH
-
-
- // ---------------------------------------------------------------
- // Set the output dump file name
- //
- //-------------------------------
- // Metrowerks Codewarrior section
- //-------------------------------
- #if defined(__MWERKS__)
-
- #if defined (__powerc) || defined (powerc)
- #pragma precompile_target "POVMWPPC"
- #else
- #if (__MC68881__)
- #pragma precompile_target "POVMW68K"
- #else
- #pragma precompile_target "POVMW68KNF"
- #endif
- #endif
-
- #define USE_PRECOMPILED_HEADERS 0 // not their PCH, use ours...
- #include <ansi_prefix.mac.h> // include this if using Metrowerks Std. C Lib (MSL)
-
- //-------------------
- // Symantec C section
- //-------------------
- // need to find out what Symantec pragma PCH-names are...
- #elif defined(THINK_C)
- #pragma precompile_target "POVTPM68K"
- // ---------------------------------------------------------------
- // Required for c-style toolbox glue function: c2pstr and p2cstr
- // the inverse operation (pointers_in_A0) is performed at the end ...
- // ---------------------------------------------------------------
- #if !(powerc || __CFM68K__)
- #pragma d0_pointers on
- #endif
- #elif defined(__SC__)
- #pragma precompile_target "POVSPMPPC"
- //------------------
- // Apple MPW section
- //------------------
- #elif defined(applec)
- #if defined (__powerc) || defined (powerc)
- // um... MPW needs...
- #else
- // um... MPW SC needs...
- #endif
- #endif
-
-
- // ---------------------------------------------------------------
- // Which OS is minimum
- // ---------------------------------------------------------------
- #if !defined(SystemSixOrLater)
- #define SystemSixOrLater true
- #endif // SystemSixOrLater
-
- #if !defined(SystemSevenOrLater)
- #define SystemSevenOrLater true
- #endif // SystemSevenOrLater
-
-
- // ---------------------------------------------------------------
- // Regular Mac system header files
- // ---------------------------------------------------------------
-
- #include <Types.h>
- #include <Controls.h>
- #include <Dialogs.h>
- #include <Devices.h>
- #include <Files.h>
- #include <Memory.h>
- #include <Menus.h>
- //#include <OSEvents.h>
- #include <OSUtils.h>
- #include <Packages.h>
- #include <PictUtils.h>
- #include <QuickDraw.h>
- #include <Resources.h>
- #include <Windows.h>
- #include <scrap.h>
- #include <shutdown.h>
- #include <sound.h>
- #include <AppleEvents.h>
- #include <AERegistry.h>
- #include <DiskInit.h>
- #include <Gestalt.h>
- #include <Folders.h>
- #include <Balloons.h> /* kHMHelpMenuID */
- #include <errors.h> /* dupFNErr, etc */
- #include <fonts.h>
- #include <segload.h> /* UnloadSeg */
- #include <eppc.h> /* kHighLevelEvent */
- #include <traps.h> /* _Unimplemented */
- #include <toolutils.h> /* BitTst, etc */
- #include <strings.h> /* p2cstr */
-
-
- // ---------------------------------------------------------------
- // Additional Header files not normally compiled in
- // ---------------------------------------------------------------
- #include <AppleEvents.h>
- #include <Components.h>
- #include <ImageCompression.h>
- #include <LowMem.h>
- #include <Movies.h>
- #include <MoviesFormat.h>
- #include <QuickTimeComponents.h>
- #include <sound.h> // SndPlay
- #include <Icons.h>
-
- #if defined(powerc) || defined (__powerc)
- #include <CodeFragments.h> /* kUnresolvedAddress */
- #endif
-
-
- // ---------------------------------------------------------------
- // Std C
- // ---------------------------------------------------------------
-
- #include <stdio.h> /* fopen */
- #include <stdlib.h> /* - */
- #include <string.h> /* strcpy/cat */
-
- #if defined(__MWERKS__)
- // hack for now to get things to compile... this forces us to use the new
- // fp.h instead of the old math.h
- #include <fp.h> /* HUGE_VAL etc */
- #define __cmath__ /* pretend like we already included math.h */
- #else
- #include <math.h> /* HUGE_VAL etc */
- #endif
-
- #include <unix.h> /* getcwd */
-
- // ---------------------------------------------------------------
- // Debug with profiler
- // ---------------------------------------------------------------
- #if defined(NEEDS_PROF)
- #if defined(__MWERKS__)
- #include <profiler.h>
- #elif defined(THINK_C)
- #include <profile.h>
- #elif defined(applec)
- // um... MPW 3.3 needs...
- #endif
- #endif
-
-
- // ---------------------------------------------------------------
- // POV-Ray headers
- // ---------------------------------------------------------------
-
- // Basic core POV headers
- #include "frame.h" // this includes config.h
- #include "povproto.h"
- #include "POVRAY.H"
-
- // Cannot have these in precompiled headers due to compile errors
- // #include "DEFLATE.H"
- // #include "ZLIB.H"
- // #include "PNG.H"
-
- // Core POV headers
- #include "ATMOSPH.H"
- #include "BBOX.H"
- #include "BCYL.H"
- #include "BEZIER.H"
- #include "BLOB.H"
- #include "BOXES.H"
- #include "BSPHERE.H"
- #include "CAMERA.H"
- #include "CHI2.H"
- #include "COLOUR.H"
- #include "CONES.H"
- #include "CSG.H"
- #include "DISCS.H"
- #include "EXPRESS.H"
- #include "FRACTAL.H"
- #include "GIF.H"
- #include "GIFDECOD.H"
- #include "HALOS.H"
- #include "HCMPLX.H"
- #include "HFIELD.H"
- #include "IFF.H"
- #include "IMAGE.H"
- #include "LATHE.H"
- #include "LBUFFER.H"
- #include "LIGHTING.H"
- #include "MATRICES.H"
- #include "MEM.H"
- #include "MESH.H"
- #include "NORMAL.H"
- #include "OBJECTS.H"
- #include "OCTREE.H"
- #include "OPTIN.H"
- #include "OPTOUT.H"
- #include "PARSE.H"
- #include "PARSTXTR.H"
- #include "PATTERN.H"
- #include "PGM.H"
- #include "PIGMENT.H"
- #include "PLANES.H"
- #include "PNG_POV.H"
- #include "POINT.H"
- #include "POLY.H"
- #include "POLYGON.H"
- #include "POLYSOLV.H"
- #include "PPM.H"
- #include "PRISM.H"
- #include "QUADRICS.H"
- #include "QUATERN.H"
- #include "RADIOSIT.H"
- #include "RAY.H"
- #include "RENDER.H"
- #include "SOR.H"
- #include "SPHERES.H"
- #include "SUPER.H"
- #include "TARGA.H"
- #include "TEXTURE.H"
- #include "TOKENIZE.H"
- #include "TORUS.H"
- #include "TRIANGLE.H"
- #include "TRUETYPE.H"
- #include "TXTTEST.H"
- #include "USERIO.H"
- #include "VBUFFER.H"
- #include "VECTOR.H"
- #include "VLBUFFER.H"
- #include "WARPS.H"
-
- // Basic Mac POV headers
- #include "AboutBox.h"
- #include "aeAppHdlr.h"
- #include "aeTok.h"
- #include "AEUtils.h"
- #include "Animate.h"
- #include "AppPrefs.h"
- #include "ArgvTrix.h"
- #include "CursorUtils.h"
- #include "DialogUtils.h"
- #include "FilePrefs.h"
- #include "FileQueue.h"
- #include "ImageWindow.h"
- #include "LnkLst.h"
- #include "MemAlloc.h"
- #include "PrePost.h"
- #include "PovMac.h"
- #include "PovMacProto.h"
- #include "Printf2Window.h"
- #include "ProgressDialog.h"
- #include "SaveCmpPict.h"
- #include "ScreenUtils.h"
- // #include "sysMacPict.h" // not used yet
- #include "SplashScreen.h"
- #include "stdfolder.h"
- #include "Stdio_p2w.h"
- #include "TemplateMenu.h"
- #include "TextEditor.h"
- #include "TE32K.h"
- #include "UndoRedoSystem.h"
- #include "VolsPaths.h"
-
-
- #if defined(THINK_C)
- // ---------------------------------------------------------------
- // return to normalcy
- // ---------------------------------------------------------------
- #if !(powerc || __CFM68K__)
- #pragma d0_pointers reset
- #endif
- #endif
-
- #endif // POVMACHEADERS_PCH
-